package lab02.text06;

/**
 * Created by Adminitrator on 2017/10/15.
 */
public class Ladde {
    //上底、下底、高、面积
    double a;
    double b;
    double c;
    double area;
    void setArea(){
        System.out.println("面积为");
        System.out.println(((a+b)*c)/2);
    }
    //返回面积
    public static void main(String[] args) {
Ladde lab=null;
lab=new Ladde();
lab.a=2;
lab.b=3;
lab.c=2;
lab.setArea();
    }
}
